import App from './App'
import store from "./store"



// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

import uView from "uview-ui"
Vue.use(uView)

if (process.env.NODE_ENV === "development") {
	// console.log("開發環境")
	Vue.prototype.env = "http://192.168.1.29:8086/api"
	Vue.prototype.imageUrl = "http://192.168.1.29:8086"
} else {
	console.log("生產環境")
}

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif